Not the right thread, but I think I figured out your cam code.