Add constraints for input