Removed unused variables causing compiler warnings