Pulsar variability code