Updated PID library to support parameter changes on the fly.