Tile detection improved.