Modify Perl script to use IDs for start and end points

The user can specify the start, end, and delay in one line.