Change trigger to emit