Mouse interaction is controlled by a flag variables, and off during process