Rupali added common helper code