Error handling, config.ini, created functions