Worked out bugs in Event subscription.