Refactored getRecentInvoices and moved to another class.