Added make_ends.py