Method and variable names changed to match documentation