Adding ways to detect starting node and accepting states