Chunk function should return the value of closure