Add snippet length limiting