Moved capture sequence out of src