Code is a total mess, but concept is proven