Fixed some syntax and such so that it compiles.