Modified detection loop to be more responsive and add milliseconds
timestamp.
Improved schematics.