Added prepared queries support.