Add code from Jason for referenc. --Lindley