Added code to prevent parser script from timing out