Cleaned up overlap.pl