Handle publish within function call #11