Adding state preserving/restoring features
Adding getFileStat function