Added global variables, attribute access and loops.