Implemented cleanup of unused model instances at an interval