Added getOnTheAir function