Added constructor with values passed from calling method/ class.