Build process is now functional, although a bit hacky.