Implements #1.