Fixed PhiReducer and added console app.