Refactored biome code a little