Added isInteracting condition.