Added code to auto and auto class to config