increased scriptdelta to 10 for better performance.