Clone from http://sourceforge.net/projects/staticmaplite/