Optional method for reading with Scanner