Added ability to rotate input