Fixed initialization so it determines the type of processing from supportedTypes.