Debug.
Exit function.
Catch errors.
Print files uploaded.