Added check for local relaying