Copied from http://sourceforge.net/projects/xqueeze/