Added optional params for getTimeEntries