Replaced newoption with wx.add.feature and some other changes.