When Is the Right Time to Transition to Agile?