--- a/LIME-examples/simple-test/sink.c
+++ b/LIME-examples/simple-test/sink.c
@@ -1,4 +1,9 @@
 /****************************************************************
+Simple sink to demonstrate LIME.
+Uses state defined statically.
+
+Copyright 2008 Pjotr Kourzanov
+
 This file is part of LIME.
 
 LIME is free software: you can redistribute it and/or modify
@@ -13,34 +18,20 @@
 You should have received a copy of the GNU General Public License
 along with LIME.  If not, see <http://www.gnu.org/licenses/>.
 ****************************************************************/
-/****************************************************************
-This file is part of LIME.
-
-LIME is free software: you can redistribute it and/or modify
-it under the terms of the GNU General Public License version 2
-as published by the Free Software Foundation.
-
-LIME is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-GNU General Public License for more details.
-
-You should have received a copy of the GNU General Public License
-along with LIME.  If not, see <http://www.gnu.org/licenses/>.
-****************************************************************/
-#include DOMAIN
+#include LIME
+#include LIME_stdio
 #include <assert.h>
 
-struct source_state;
+struct state;
 
 static int CheckCount(unsigned int size, 
 		const unsigned int *buf,
 		unsigned int *pCount);
 
-static struct source_state state;
-void process(const unsigned int buf[restrict BUF_SIZE])
+static struct state _state;
+actor process(const unsigned int buf[restrict BUF_SIZE])
 {
-	int s=CheckCount(BUF_SIZE,buf,&state.count);
+	int s=CheckCount(BUF_SIZE,buf,&_state.count);
 	if (s) printf("check OK\n");
 	else printf("check FAILED\n");
 	assert(s);