Adding success, error and notify handlers.