First version with config