Updated rotate functionality and metadata value