Adjusting pointer values and refactoring methods.