Added implementation of keg.