Remove obsolete code
Do not override the class function
Set default attributes correctly