Built up response object and modified query.