Added memory and virtyual CPU as input parameters.