Line 17 to 20, would you explain why MaxInstanceNum start from 1 instead of 0?, it is now actually "Max instance num plus one"