// This method takes setBlockData(Dictionary<vector3, int>) as the block data, it also passes along the setBounds(GameObject). This is called to start the class.
    public void PreGen(Dictionary <Vector3, int> setBlockData, GameObject setBounds)
    {
        // Set variables.
        mesh      = gameObject.GetComponent <MeshFilter>().mesh;
        col       = gameObject.GetComponent <MeshCollider>();
        ren       = gameObject.GetComponent <MeshRenderer>();
        master    = UnityTools.GetMasterController();
        taskCont  = master.GetComponent <TaskController>();
        bounds    = setBounds;
        blockData = setBlockData;

        // Start Coroutines.
        StartCoroutine(ThreadWork());
    }