Added API, more work with pages.