Stop using deprecated event subscribe method