Merge pull request #450 from hnyman/stat-memory