Updated MAC polling script. Fixes #144