'Finished' code for sha512 hash, but it needs to be debugged.