[Olena-patches] 2969: Update some routines so that they return output.