Added a criteria method