Removes unwated code
Added attribute filter exceptions