*args works in functions, added field extraction