Rewrite produce method, in hopes of fixing some electricity issues.