Added more DLL funcs. Fixed some issues in load_sequence.