Allow config options to be passed in