Old stuff, before gailia rework.