Add Pre and Post generation events for structures.