Code style
Use temporary variable for extraRotations
Use temporary variable for extraRotations