Lesser version of mtl
Move function closer to use site