Moved some variable setup here from the Makefile and made it