added dirchanged to allow for monitoring of the contents of a directory.