Rotation quantity almost working

Rotation quantity almost working. Still need to check for 45 degree
rotation, but it is working for 30 degree rotation.