More simple code, much static variables