Fixed paging application, as well as added socket timeout