Original: The screenplay, written by Hampton Fancher and David Peoples, is based loosely on the novel Do Androids Dream of Electric Sheep?
Simplified: by Philip K. Dick.