Added flag for touch events