Added time element to process_text