Replaced moving at the end with a call to move().