Change check for status instead of flag