Made output length const