Improved output, handled exceptions