Notify using a separate function