@igorko I couldn't find a proper place for this helper function, any suggestion ?