* Raise exceptions for errors * Fix lb1 error check * Fix typo * Improve code readability * Fix exception