Fix bug, create data structure for process