Important memset problem solved. Bytes vs long ints.