Modified version of m0rehud, for my own use.