Prototyped some criteria builder like api