Why did we need to create a new method for this? Can't you just put all this inside onPlaying()?