Made some variables public for testing.