Add polling parameter
Add some libraries and boilerplate code