Shifted coordinate frame to match algorithm