What `cleanup` method is being called here? I don't think it is defined anywhere..