Added changes on rotation matrix inputs