Pass query in final credentials