Serial version ready for makefile