Very simple S3 generator