Added functions from load tool before changing program

Added functions from RZKSCLD to separate logic between programs.