Finished version of code
Static building doesn't appear to work...