Reorganized curses functions.