Add criteria tools

Add basic criteria tools.