Consolodated attributes processing in one function.