Modified signature function (see http://www.hackerfactor.com/blog/index.php?/archives/432-Looks-Like-It.html)