Rename end code to platform_code to indicate ad-hoc nature