Standard library component of FX-sdk. Originally by Andreas Bertheussen.