Fixed to use dicts.

Fixed to use the proper return format.

Fixed to store entries in redis properly.