Command line script works now