Implemented retrieving open pages (Fixed #37)