All you need to do is initialise the variables when they're first declared, or somewhere in the program that is guaranteed to be executed.
At the moment, those variables are only being initialised...