Fixed before-listener example.