Combine the get and loadPage functions for simplicity.