Added support for tuples
Added namedtuple and changed argname
Changed if statement to be more readable
Changed usage to **kwargs