Adds clone function
Use macro to check equalty instead of plain ==