Add move function to objects