Added necessary print code