Now output attributes for complex also implemented