Refactored the .cname function