Some progress on manual offset. Still some bias unaccounted for though
Removed last bit of bias by offseting stack in main.