Identify the start and end of each command