Fixed history problems. Now accesses correctly and exhibits expected behaviour