Add an option to specify minimum data, still need to implement