NOw it should be a bit smarter, only run when it's from the command line