Use config file info

@chriddyp Please test.
hmmm...