DHT works now and some file related stuff works. Resizing the frame is now borked though. Oh well. Was up all night and I'm exhausted, so this is it for now.