Added try-catch for getting transitions