Fix warning: unused variable.
Fix warning: reorder attribute initialization.
Fix warning: unused parameter.