Add conditionals and echo statements to script