Added main proc