Added support for up to 9 attributes