The -n in the move command prevents it from overwriting existing files. This is important if there are multiple photos taken at the same time.
The exiftool application is essential to read the photo metadata and extract the original time a photo was taken. This will not work without it installed.