Add 'open_index.m' and 'close_index.m
'