Changed methods of internal class to public