Altered code for larger scale production.