Separate out some common code and create Makefile