Hook to detect new objects.