Changed movement from 2 to S variable.