First working version of sherlock