Add config to constructor. Remove constants.