Made a few small syntax error fixes, and made the check work.