On-site generation