Added functionality for direct manip of Bed files