Added NoHide keyword support to RebuildSlotmask