Redesiged build.  Also fixed bug when stock pile runs out.