New functions added by Apurva Kumar Sinha