added delay before deleting object.