Used variables's length method instead of constant.