Cleaned up pru code a bit