added timing stuff -cbb