Completely missed the fact that there was an existing hook for the method "expand".