Remove write statement in timeprof retrieval function