Adding getThreadPool call to avoid blocking the main thread