Added memset check