Add naive shortening implementation