Eliminate weird string initialization, properly initialize checksum in function.