Visit the smartplugs demo to get a better view of the script!