Added peek function to script.