Cleaning up generator