This is copied from the static project.