Added movement handler