Updated the compareattributes and comparedestinationId methods