Added ability for different source parameters.