Little reorganization, moved memset() to Reset()