Modified to considerer only the thrend