Add options and load common stuff from config file.