We could use some javadocs here, to explain what's happening.