Added preliminary movement code