Add optional argument to pass to BOF and EOF application functions