Avoiding repeated accesses to this.position