Plugin library from Jens Kvist