Make sure span parameter is valid.
Added downsample management command.