Added config reading.