VC++ Compatibility and some changes to function I'll need to test.