Added Inquiry, checkSet, setMode subroutines