Refactor various parts.
Initialize additional sigevent member.