Added allowed rotation as a parameter for modal API.