Fixing Compiler/ some pointer errors.