Implemented Javier's labeling method. B.boot