Added population constants, fixed window.Type missing bug.