Work in progress: get_clips_code