Changed to return Entries rather than printing to console