Branch Error Check Added