Made the SD driver more readable