Simplified code for vein generator.