Mapped functions to pin numbers