Changed getLatestInvoices to getRecentInvoices