Added main snippet