Changes setPushHandler to handle assertions instead