Made use of memset in the ALL functions