Use globals in class