Adding calculateHandlen() functionality