Added initial support for distributions.