Added how_long to measure how long tasks take