Updated for map editor changes. (Array stuff)