Added Curses implementation for reference