Complete machine p output function