building in support for other attributes too.