Added config class to make injection easier.