Added TA function

Use your brain again.