Code for longwebcam.org project