Update '_get_args' function for keeping order of elements.