Finally implemented rotation