Custom pitch - Second version with several fixes.