Set number of storage slots in the script.  Fixes #1