Remove the shell script wrapper, put functionality directly into the Haskell script