Fixed polling. It only updated the interface when necessary