Block rotate code added