Now logging all the info and warnings. Also found a solution to globals!