Revert wrongly removed code from obr plugin