Compiles now, but segfaults.