Linker problems but a lot of good code in here.