Used MutableSet instead of MutableArray