Removed unnecessary script reads for initializing functions