Modified to read out to command line