Added stuff for compatibility with WebReader