Public helper function suggest to be use on Codi but you can use anywhere with trivial changes