Updated library.

Added functionality to check for a download preference..