bunch of pivot stuff
Fixed pivot and guide estimation, should work. Also commented.