Fix overloaded virtual function warnings
Fix unused variable warning