Move Util functions into stamp module