only set status to DONE at the end of Process not Function!