Still have some issues with list index, but getting out now works.