Added generic sitout detection in from chazdazzle branch