Code still doesn't work. Perhaps I should read STY iOS in 24 Hours.
Added some additional comments for clarity.