Added checkPollOngoing method. Still need to test it.