A more flexible system to manage different scales. Temporarily in this file.