Hopefully this fixes too many open files error