All this code already exists above starting at line 653.
Attach a file by drag & drop or click to upload