Re-add getStat function