Replicate PMOD's behavior