Defined get_args function