Handling of movement back and forth