Revised constraint events to check if it is a constraint