Attempt to consolidate the xlines using inheritence. Will have to test.