Optimize the SNAPDATE variable away on the way and use ${ECHO_MSG} instead of ${ECHO} [1]. Spotted by: eik [1]