Remove unused argument
Set a default padding of 32
Pull last iteration outside of loop
Only correlate the region of the last level that we actually use
Remove debug code
Clean up code, remove brackets, allow compiler to optimize