Algorithm Updated, now runs cells