Fixed some error at compile time. Need to fix a couple more.