Many changes to the orignal source to make it into a more generic test bad for measuring and comparing slick performance