Added file related utils.