Changed .public references to ["public"] to avoid usage of special names