Cleaned up workstatus code.