Added global vars, configuration