Added dynamic window sizing depending on mineral deposits.