Example of implementing pub with unscripted