Adds statement fetching.