BS-2575, extract code getting the first executable elements