Rename pin_handler()