This was a failed attempt to adapt the hbg-crime project code to our uses