Added check for double sending (flood prevention)