Change children to a function for consistency