Completed ptmcode analysis