Added function that waits for all proccess to exit. Added set pager function.