Refactored tile data loading to work more nicelier in future.