Changed a method and variable to static.