Removed error logging code.