Ed_
6fac2a97ff
Starting to get serious about profiling this procedure and optimizing performance. I also want to make it more ideomatic now...