Maybe we should declare events as unsigned int instead.