Updated dile structure and chnaged name to main