Added planes support. Not quite working yet, I will finish it tomorrow, I think.