FIxed function to add random key to store data function.