Changed constraint from boolean operator to method
Removed unnecessary parameter