Added dataset reduction and cleaning capabilities.