Add line counter. Add random number generator.