Add fetch function for fs library