index_h now uses the .Call interface