Extracted open stage ids into separate variables. Task stage numbers replaced to constants.