Made --public flag functional.