Added file param to go func.