No need for global variables. My bad...