Updated stage1 with some experimental code