Updated code to populate rotation.