Add duration parser
Tweak scan_duration method
Add tests metrics