Endtime as function. Grr. Damn strings