....
Tidying up logging and checking interface
...
Refactoring to run on NIOS