Added a few lines to Pre-Install Script

Trying to keep it a bit more modular by using
functions.