Convert attributes to a map[string]string for easier use
Rename fields to be more logical