Seems to work for command line