Multiple Attributes Sets support implemented. Complex example modified.