Added limit switch