Moved config to readconfig - less confusing when used.