The two functions are added by prashant_pandey