This is code for the drive subsystem.