Asserts, logging, window creation