Update script of polling for more performance