Working on cube detection.