Moved animation to main thread