Make volatile for thread safety