Updated resting event handler