Change to take text, a and time into consideration.