Passing data to generators