A tool to relocate PAT/PMT to the front