Bugfix and multithreading for all() and pages()