Added a way to timeout face detection