Working code for the day, also the feedback now vanishes when scan mode deactivated.