Working on libification, but it's broken at the moment