Add a little bit of logic to remember last frame position