Executed formatR against the code.
Variables renamed to comply with the codebase