Added status usage to main and SMB
Refactor STATUS_REG to STAT