Added length check.

TODO: Add content checker.