Functions for attributes now take output parameter and return a status