Added ability to set callback to do a required check on properties