Added dependency structure and proc_run to process the event queues