Added ScanTS.R