Functioning API for text and time, still undefined problems