First working version. Made the task in named_task be initialized with a
reference to the task function. This way the original task function
survives until next lap.