Size checks and updated documentation.