Sets the direction