Setting up notifyUser function