Added sha1 to query (although it is same as md5).