Updated XgetSymbols code to error check.