Re-wrote a lot of plant gen code, still running into bugs though