Updated to use new basestar refactor of event emittion, defineEvent function.