Block rotate functions added