Changed mode to be executable from command line