Made the functions inside lb_file.py less buggy....