New functions updated for Karan malik