Move the `credits()` and `close()` functions to separate file to free up some space in the scan file.