Added rotm implementation