Edits
Change sparkfn argument to be more consistent with other definitions