added preferences for timeouts.