Implemented attribute activation.
Added attribute cleanup.