Functions for groups and datasets now take output parameter and return a status