Added basic error checking/notification to local script.