Rewrote res to be more verbose.