We should calculate the sha512 here