Added delegate callback to input query