Remove unneeded attributes and method