Thanks, main_runtime is redundant, it should always be true in this function, will remove it.