Uploading Ken's code.