Merging functions notify and notifyUser