Now pre-populates the table and performs cleanup too