Simplifying movement code.