Index: trunk/ppSkycell/src/ppSkycell.c
===================================================================
--- trunk/ppSkycell/src/ppSkycell.c	(revision 23982)
+++ trunk/ppSkycell/src/ppSkycell.c	(revision 23992)
@@ -5,4 +5,7 @@
 #include <stdio.h>
 #include <pslib.h>
+#include <psmodules.h>
+
+#include "ppSkycell.h"
 
 int main(int argc, char *argv[])
@@ -11,5 +14,5 @@
     if (!data) {
         psErrorStackPrint(stderr, "Unable to initialise.");
-        exit(PS_EXIT_CONFIG_ERROR);
+        return PS_EXIT_CONFIG_ERROR;
     }
 
@@ -17,7 +20,22 @@
         psErrorStackPrint(stderr, "Unable to parse arguments.");
         psFree(data);
-        exit(PS_EXIT_CONFIG_ERROR);
+        return PS_EXIT_CONFIG_ERROR;
     }
 
+    if (!ppSkycellCamera(data)) {
+        psErrorStackPrint(stderr, "Unable to parse camera configuration.");
+        psFree(data);
+        return PS_EXIT_CONFIG_ERROR;
+    }
 
+    if (!ppSkycellLoop(data)) {
+        psErrorStackPrint(stderr, "Unable to process data.");
+        psFree(data);
+        return PS_EXIT_DATA_ERROR;
+    }
 
+    psFree(data);
+
+    return PS_EXIT_SUCCESS;
+}
+
