Modify to return a status from judge-func