Started to rewrite lvec from S3 to S4