PinManager rewrite
PinManager rewrite