Adding constructor for custom data supplier.