Incorporate sanitize_attributes method