Memset function was replaced with loop initializations.