Creating and checking links