Added sketch size verification.

Added sketch size verification.