Everything compiles, but segaults when running.