Add constructor to globals