Set up attributes as map