Using the volatile keyword