Commented on length error handling.