Removed some experimental code form writer_wrapper, and added some additional logs for troubleshooting the paging issue.