[P3]I've reached the point of 'wtf am I doing'. Future ty: clean up this code.