added timing and script count