Use new stat library