Need to rethink animation as it acssess ui elements which are volatile.