Adds implementation of move method.