Add isreport, RMREPORT. Fix - add set_status(RECEIVED,...) in some functions.