Moved general use functions to external file that bundles them on install.