Added option to set the maximum time for samples and fixed an issue where files were duplicated in release files for the same release