Copied from development.