Move installation of the timeout before CPU intensive computation