Updating: emit dynload function and main function.