Adding function for testing and copy set