Added rotational utility function