Moved Ta read into loop().