Added support to loops in Rotate action.