Codes for learning phaser.