Add script capture, and sync script