Added difference variable and method.