Added length limit to prevent abuse.