Dispatch runs expansion with a function