Add some old func, from old prj.