Treat movement in a generic way