Forked version 2.2.1 from https://launchpad.net/flufl.bounce