Performing self-maintenance