Added code to install the three prerequisite packages automatically.