Added idle and load events.