Added config exception and some minimal error checking