Code

Created extra function for attribute cleanup