Added argument parsing. Currently breaks without arguments. Run in dev mode to test.