Made constructor public again because it is needed for certain cases.