Renamed parameter for write_page to result