Cleanup of analysis