Added pid availability checking for first page