Changed constructor, added "ignoreEvents" option