Changed rotation to 2 degrees of freedom instead of 3