Make function for getting fd's