Keep the arguments small, maybe just 

    length, final and K.