Added main snippet.