Add cell toggling and painting routines.