defined CURRENT_STATUS in default.conf and reworked the function SetCurrentStatus