Cleaned interface for top level function process_dataset