First fully working version with config management