added averaging altitude with queue