Move stuff to config.js, fix status checking