Code for synchronized camera system