Change to call the PROC instead of the embeded code.