Added a function that figures out the type of break.