@xcabbage : detection algorithm

stolen :D :+1: