Modified error message and output message.