Code that controls the current source