Pass data to the closure