Fixed warnings with unused parameters