Added terrain object code.