Adds return values to protected functions