Starting to translate function to create capture nodes