Two Implementation variants for Button polling