Created a method for checking hard constraints