Added code for auto installation of required packages