Added error handling to load.