Trimmed version of Wards PCODES first upload.