Add quality attributes to function definitions