Initialized variables before using them and removed unused variables