Added linedef support, among other things