Refactored AView to make it easier to work with.