Implemented AddStage(index, stage). Fixed a selector issue.