Changes to use SHA512 instead of MD5 (woops)