Lewis is completely working. Thanks to @asquared and @augustf for working out a variable reference bug.