Don't need to pass in results to doen as they are available within the function already - also means no need to error check anything so effectively I have just moved the done function as a whole so it is available everywhere it is called from