Added new functionality, added to function sanitize_link