Initial extraction from bolt project.