Refactor by replacing lists with dicts