Added check for already linked handles