Added global directive support