Rewrote config checker