Made use of error function's 'len' paramenter.