Terragen render thread added but still needs some refinement.