Adding get function and command to script.