Adding a method to reset attributes.