Moved config try/catch