Added function snippet for sh