Stopped using global var for activity