Added stages= method to allow programmatically setting new stages