Initial copy from Insight project.