Changed the number of scans per channel to 50, this makes it possible to ommit the delay in the code.