Add namespace validation and selfSlice