Register the PistonListener.