Removed randomKey function