Add constructor from context