Try with a generator