It seems to me like $submenu already does this. As far as position, what if all scripts want their position to be 5th, or 1st?