[Olena-patches] r3716: Merge new fun implementation to main milena directory