Got rid of some compiler warnings due to unused variables