Added getPitch and getAllPitches methods