Adds Z rotation handling.