Adds functionality for only notifying on the last file.