Added option to make object public. #9