Implemented cell detection and manual selection.