Fixed the breadcrumb issue
Refactored the names of the variables and increased readability and
decreased complexity