Fixed some warnings, mostly unused variables