PID library for Spark Core