Here is a portion of the driver that I created. Check comments for details