Adding HDFS version of utility funtions