Added Gene's curses code