Beginning terrain work, more work on threads