Added the 'def' global keyword