Compiles but dumps core and is generally incorrect