Main compiles. Still bugs though