Make sure to memset all dynamically allocated data. Argh