Adding a Frame class for managing context between nested maps.