Merge some code into an inline function, so we can optimize it later only once.
Attach a file by drag & drop or click to upload