Nicer script, using readlink etc