Added functions for building criteria sentences