Back merging reaction patch from opencobra:master