Added warning when referencing global object.