Changed SHA1 to template. Added threading classes.