Added functionality for automatic match events. Closes #162.