Added on Begin Query callback