Privatized inner class constructor.