Added support for multiple pins