Added documents
Added another global variable