Removing the dependency on ulimit