Simplified ndmap method of Timeline to use own context manager