Replaced the zeroing for loops with memset