Migrate to amphp