Reimplemented thread pool to perform asynchronous animations.