Buggy version - can't find the segfault right now.