Some simple app/window/logging + math