Fixes check file output and logic