Added limit switch debugging