Changed the way that the keystone geometry is calculated.