Fixed issue #8

Events can be set directly now