Add warning if end is close