Added switch entity framework and tile getting