Adding script to check ancestry