Dreamfall in Vain constant algorithm