Added new utilities to glib for handling bed elevations