Added a replace motion