Also made everything static, no global functions are needed here.
Attach a file by drag & drop or click to upload