Added using safe load for external data instead of loadstring.