Adds move backwards function.