Fixed broken ids
Added flag to prevent writing of private methods