Improve primes and script commands.