Added error handling!
Optional automatic error reporting