Moved attributes to attributes attribute to minimize chance of naming clashes.