Adds return values to functions that set headers