Add moveObject() method.