Pass args to functions Closes #187