T4: Partly implemented the reply feature. Fixed the error handling to make it a little more robust.