Added support for multiple sinks.