Fix code for detecting Status: