A library I wrote a long time ago. Code quality is... :S