Moved the lastProcessed update to after retrieving account details