Implemented basic custom constraints