InterfaceOptions_AddCategory() (a nil value)

You should find most of what you need in this (longish) thread