Implemented cell flagging.