Move 'main' to the end so we don't have to pre-declare all the functions.
Attach a file by drag & drop or click to upload