is_finished resolves. Some unused variables were deleted