Added a flag for the minimal distance between screen locks
Ensured that the face detection starts as soon as the program is started